from langchain_core.messages import HumanMessage
from langchain_openai import ChatOpenAI

model = ChatOpenAI(model="gpt-4", temperature=0)

# 测试简单的消息
response = model.invoke([HumanMessage(content="上海天气如何？")])
print(response.content)
